<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1"%>
<%@taglib uri="http://www.springframework.org/tags/form" prefix="form" %>
<%@taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>  
<%@taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<fmt:bundle basename="br.com.universidade.castelo.branco.resources.ApplicationResources" prefix="">
<head>

<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">

</head>
<body>
<jsp:include page="/WEB-INF/views/pesquisadesatisfacao/menu.jsp" flush="true"></jsp:include>

<img src="resources/imagens/pixel_transparente.gif" height="5%" width="10%">
<div align="center">
<fieldset id="fieldsetFormQues">

<legend id="alinhamentoForm">
	<h3><fmt:message key="cadastro.modulo.questionario.titulo"></fmt:message></h3>
</legend>

<form action="adicionaQuestionario" method="post" >
<table id="alinhamentoForm" align="left" >
	<tr>
		<td>
			&nbsp;&nbsp;<fmt:message key="cadastro.modulo.campos.obrigatorios"></fmt:message>
		</td>
	
	</tr>
	
	<tr>
		<td>
			<br />
		</td>
	
	</tr>
	
	<tr>
		<td>
			&nbsp;&nbsp;<fmt:message key="cadastro.modulo.questionario.campo.titulo"></fmt:message><br />
			<select id="selectFormAdicionaQuestionario"  type="text" name="id_questionario">
				<option value="0"></option>
				<c:forEach items="${questionarios}" var="questionario">
					<option value="${questionario.id_questionario}">${questionario.titulo}</option>
				</c:forEach>
			</select>
		</td>
	
	</tr>
	
	<tr>
		<td>
			<br />
		</td>
	
	</tr>
	
	<tr>	
		<td>
			&nbsp;&nbsp;<fmt:message key="cadastro.modulo.questionario.campo.pergunta"></fmt:message><br />
			<select id="selectFormAdicionaQuestionario" type="text" name="id_pergunta">
				<option value="0"></option>
				<c:forEach items="${perguntas}" var="pergunta">
					<option value="${pergunta.id_pergunta}">${pergunta.descricao}</option>
				</c:forEach>
			</select>
		</td>
	
	</tr>
	
	<tr>
		<td>
			<br />
		</td>
	
	</tr>
	
	<tr>	
		<td>
			&nbsp;&nbsp;<fmt:message key="cadastro.modulo.questionario.campo.modelo.resposta"></fmt:message><br />
			<select id="selectFormAdicionaQuestionario"  type="text" name="id_modelo_resposta">
				<option value="0"></option>
				<c:forEach items="${modelo_resposta}" var="modeloresposta">
					<option value="${modeloresposta.id_modelo_resposta}">${modeloresposta.descricao}</option>
				</c:forEach>
			</select>
		</td>
	
	</tr>
	
	<tr>
		<td>
			<br />
		</td>
	
	</tr>
	
	<tr>
		<td>
			&nbsp;&nbsp;<fmt:message key="cadastro.modulo.questionario.campo.ordem.pergunta"></fmt:message><br /><input type="text" name="ordemPergunta" value="0" onkeypress="return numeros(event.keyCode, event.which);">
		</td>
	
	</tr>
	
	<tr>
		<td>
			<br />
		</td>
	
	</tr>
	
	<tr>
		<td>
			<input id="botao" type="submit" value='<fmt:message key="pds.botao.adicionar"></fmt:message>'>
		</td>
		
		<td>
			<input id="botao" type="reset" value='<fmt:message key="pds.botao.limpar"></fmt:message>'>
		</td>
	</tr>
</table>
</form>
</fieldset>
</div>
</body>
</fmt:bundle>
</html>